var searchTemp=[];
var user;
export default{
	getUser(){
		return user;
	},
	setUser(userData){
		user = userData;
	},
	getSearchTemp(){
		return searchTemp;
	},
	clearSearchTemp(){
		searchTemp = [];
	},
	addSearchTemp(item){
		var isAdd=true;
		searchTemp.forEach(e=>{
			if(e == item){
				isAdd = false;
			}
		})
		if(isAdd){
			searchTemp.push(item);
		}
	}
}